package com.cw.DesignModel23.Behavioral.CommandPattern;

public class Client2 {
	public static void main(String[] args) {
		Receiver receiver = new ConcreteReciver1();
		Command command = new ConcreteCommand1(receiver);

		Receiver receiver2 = new ConcreteReciver2();
		Command command2 = new ConcreteCommand2(receiver2);

		Invoker2 invoker2 = new Invoker2();
		invoker2.addCommand(command);
		invoker2.addCommand(command2);
		invoker2.executeCommand();
	}
}
